<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>增加30%的新数组</title>
</head>
<body>
    <script>
        var oldArr = [10,100,1000,10000];

        // 增值函数:截取替换
        function arrUp(arr){
            for(var i=0;i<arr.length;i++){
                arr.splice(i,1,arr[i]*1.3);
            }
            return arr
        }

        console.log('新数组为：',arrUp(oldArr));

    </script>
</body>
</html>